package org.example.springblogdemo.service;

import jakarta.validation.constraints.NotNull;
import org.example.springblogdemo.pojo.dataobject.BlogInfo;
import org.example.springblogdemo.pojo.request.AddBlogRequest;
import org.example.springblogdemo.pojo.request.UpdateBlogRequest;
import org.example.springblogdemo.respone.BlogInfoResponse;
import org.example.springblogdemo.respone.Result;

import java.util.List;

public interface BlogService {
    List<BlogInfoResponse> getList();

    BlogInfoResponse getBlogDetail( Integer blogId);
    BlogInfo getBlogInfo(Integer blogId);

    Object addBlog(AddBlogRequest addBlogRequest);

    Boolean updateBlog(UpdateBlogRequest updateBlogRequest);

    Boolean deleteBlog(@NotNull(message = "id不能为空") Integer blogId);
}
